﻿// 测试设置类.

// 动态设置大小.
var setTest = function(){
	alert("开始变化");
	
	// 测试动态设置 **************************
	// 设置半径.
	setNode("pers803","r","50");
	// 测试节点颜色.
	setNode("pers803","nodeColor","#000000");
	// 测试文本变化.
	setNode("pers803","label","Hello Word");
	// 测试方向.
	setNode("pers803","labelDirection","BOTTOM");
	// 测试字号.
	setNode("pers803","fontSize","50");
	// 测试文字颜色.
	setNode("pers803","fontColor","#000000");
		
};

// 待测试完成
var setLineTest= function(){
	alert("开始变化");
	
	// 测试动态设置 **************************
	// 设置relation.
	setLine("comp1008","pers802","relation","hello word");
	// labelVisible.
	setLine("pers802","comp1008","labelVisible","1");
	// lineColor.
	setLine("comp1008","pers802","lineColor","#0000FF");
	// r.
	setLine("comp1008","pers802","r","15");
		
};

// 获取测试结构信息.
var getStructTest= function(){
	alert("获取结构，请查看console");
	
	// 获取可直接保存的结构数据.
	var saveData = getSaveStructData();
	
	// 输出.
	console.log(saveData);
		
};
